]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
AppSwitcherPopup: Activate only the selected window if any
authorRui Matos <tiagomatos@gmail.com>
Sun, 7 Apr 2013 14:42:42 +0000 (16:42 +0200)
committerRui Matos <tiagomatos@gmail.com>
Sun, 7 Apr 2013 19:05:38 +0000 (21:05 +0200)
If there's an explicitly selected window thumbnail we should bring up
only that particular window instead of all the application's windows.

https://bugzilla.gnome.org/show_bug.cgi?id=697480

js/ui/altTab.js

index 4b62f5c7159ffbf49ac3547db9cff55f02ef594d..435e66f5e788e4673ad7902fefce0b6611b24ca5 100644 (file)
@@ -233,8 +233,10 @@ const AppSwitcherPopup = new Lang.Class({
 
     _finish : function(timestamp) {
         let appIcon = this._items[this._selectedIndex];
-        let window = this._currentWindow > 0 ? this._currentWindow : 0;
-        appIcon.app.activate_window(appIcon.cachedWindows[window], timestamp);
+        if (this._currentWindow < 0)
+            appIcon.app.activate_full(-1, timestamp);
+        else
+            Main.activateWindow(appIcon.cachedWindows[this._currentWindow], timestamp);
 
         this.parent();
     },